]> dgit.raspbian.org Git - gnome-shell.git/commit
inputMethod: Manually reset input context state before unfocus
authorCarlos Garnacho <carlosg@gnome.org>
Mon, 17 Oct 2022 11:34:21 +0000 (13:34 +0200)
committerMarge Bot <marge-bot@gnome.org>
Wed, 26 Oct 2022 10:00:37 +0000 (10:00 +0000)
commitecc3cf8ab108c4511e650f4d0f0124b9f98cd8bf
tree7894339ee50297f9b21fd343273d39e93f59c60d
parent12032dcc50e108e984fe4d689e8d372d0eb1d5ff
inputMethod: Manually reset input context state before unfocus

The IBusInputContext currently seems to be a bit sloppy wrt propagating
the current state to engines after those are changed, this results in
engines possibly ending with purpose/hint/etc that do not actually
correspond to the current state.

Ensure this state is cleared on unfocus of our IBusInputContext, so
that the next time the input method receives an input focus, the new
state makes it all the way to the currently active engine.

Fixes situations in the GDM/lock screen password entry that IBus
would miss the PASSWORD hint set on the StEntry, and let passwords
be fed to engines.

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5966
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2512>
js/misc/inputMethod.js